{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "69f4b61d",
   "metadata": {},
   "source": [
    "# 芜湖~  是升级版课程表耶！\n",
    "\n",
    "##  功能：\n",
    "* 增加用户输入，输入指定时间格式，输出对应的课程表（非会员每天可以使用5次，会员可以使用10次，登录时判断）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "8b74325a",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "ename": "IndentationError",
     "evalue": "unindent does not match any outer indentation level (<tokenize>, line 56)",
     "output_type": "error",
     "traceback": [
      "\u001b[1;36m  File \u001b[1;32m\"<tokenize>\"\u001b[1;36m, line \u001b[1;32m56\u001b[0m\n\u001b[1;33m    else:\u001b[0m\n\u001b[1;37m    ^\u001b[0m\n\u001b[1;31mIndentationError\u001b[0m\u001b[1;31m:\u001b[0m unindent does not match any outer indentation level\n"
     ]
    }
   ],
   "source": [
    "# 提要：观察老师上课写的，模仿一个\n",
    "# Author：xinxin\n",
    "#作业：升级版课程表\n",
    "\n",
    "#登录系统\n",
    "# VIP 账号\n",
    "user_data_vip = [\"xinxin\"]  \n",
    "user_data = [\"xinxin\",\"huahua\",\"apple\"]\n",
    "password_data = [\"123456\"]\n",
    "import datetime\n",
    "time = datetime.datetime.today().weekday()\n",
    "\n",
    "count = 3#三次机会\n",
    "\n",
    "while True:\n",
    "    count -= 1# 每输一次减一次机会\n",
    "    \n",
    "    # 用户输入数据\n",
    "    username = input(\"请输入您的账号：\")\n",
    "    password = input(\"请输入您的密码：\")\n",
    "if username in user_data or username in vip_user_date:# 1.判断账号是否是本网站用户\n",
    "if username in vip_user_date:# 2.再判断是否为VIP用户\n",
    "if password in password_data:# 3.判断密码是否正确\n",
    "                count = 5\n",
    "                while True:\n",
    "                    count -=1\n",
    "                    if count == 0:\n",
    "                        print(\"您的查看机会已耗尽。\")\n",
    "                        break\n",
    "\n",
    "    else:\n",
    "                        count -= 1\n",
    "                        print(\"会员大大好(●'◡'●)\")\n",
    "                        print(\"您还有\", count, \"次查看机会噢！\")\n",
    "                        week_time = int(time)\n",
    "                        # week _time\n",
    "                        if week_time == 1:\n",
    "                            print(\"上午没有课，可以睡大觉嘻嘻\");\n",
    "                            print(\"12-14 毛概基础\")\n",
    "                        elif week_time == 2:\n",
    "                            print(\"被语言支配的周二啊\");   \n",
    "                            print(\"10-11 大英\");\n",
    "                            print(\"12-13 法语语言与文化\")\n",
    "                        elif week_time == 3:\n",
    "                            print(\"早八 体育篮球\");\n",
    "                            print(\"3-5 毛概实践\")\n",
    "                        elif week_time == 4:\n",
    "                            print(\"又是早八 大英\");\n",
    "                            print(\"3-5python\");\n",
    "                            print(\"8-9 罗希姐姐的广告文案\")\n",
    "                        elif week_time == 5:\n",
    "                            print(\"早八我AI你\")\n",
    "                            print(\"4-5 网站运营\")\n",
    "                        else:\n",
    "                            print(\"周末快乐！\")\n",
    "    else:\n",
    "            if count == 0\n",
    "                print(\"你输入的账号或密码不正确，请重新再输入\")\n",
    "                break\n",
    "            else:\n",
    "                 print(\"您输入的账号或密码不正确，请重新输入,您还有\",count,\"次机会~加油\")\n",
    "    else:\n",
    "        if count == 0:\n",
    "            print(\"啊欧又错了，5分钟后再来吧\")\n",
    "            break\n",
    "            \n",
    "            # 登录3次都没成功\n",
    "    else:\n",
    "        if pass_word == password_data:\n",
    "             count =5\n",
    "        while True:\n",
    "             count -= 1\n",
    "                    print(\"您不是会员。\")\n",
    "                    print(\"您还有\", count, \"次查看机会。\")\n",
    "                    week_time = int(time)\n",
    "                        if week_time == 1:\n",
    "                            print(\"上午没有课，可以睡大觉嘻嘻\");\n",
    "                            print(\"12-14 毛概基础\")\n",
    "                        elif week_time == 2:\n",
    "                            print(\"被语言支配的周二啊\");   \n",
    "                            print(\"10-11 大英\");\n",
    "                            print(\"12-13 法语语言与文化\")\n",
    "                        elif week_time == 3:\n",
    "                            print(\"早八 体育篮球\");\n",
    "                            print(\"3-5 毛概实践\")\n",
    "                        elif week_time == 4:\n",
    "                            print(\"又是早八 大英\");\n",
    "                            print(\"3-5python\");\n",
    "                            print(\"8-9 罗希姐姐的广告文案\")\n",
    "                        elif week_time == 5:\n",
    "                            print(\"早八我AI你\")\n",
    "                            print(\"4-5 网站运营\")\n",
    "                        else:\n",
    "                            print(\"周末快乐！\")\n",
    "                            elif count == 0:\n",
    "        print(\"您已输错三次，请重新输入\")\n",
    "             break\n",
    "    else:\n",
    "         print(\"您输入的账号或密码不正确，请重新输入，您还有\", count, \"次机会\")\n",
    "    else:\n",
    "        print(\"用户名错误\")\n",
    "             "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "2473e918",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "526543c8",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "fd451b86",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1d9cb3a0",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
